(* Content-type: application/vnd.wolfram.mathematica *)

(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)

(* CreatedBy='Mathematica 10.4' *)

(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[       158,          7]
NotebookDataLength[     15127,        521]
NotebookOptionsPosition[     11156,        394]
NotebookOutlinePosition[     13285,        451]
CellTagsIndexPosition[     13200,        446]
WindowTitle->SquareAmplitude
WindowFrame->Normal*)

(* Beginning of Notebook Content *)
Notebook[{
Cell[BoxData[GridBox[{
   {Cell["FEYN CALC SYMBOL", "PacletNameCell"], Cell[TextData[Cell[BoxData[
     ActionMenuBox[
      FrameBox[
       InterpretationBox[Cell[TextData[{
         "URL",
         StyleBox[" \[FilledDownTriangle]", "AnchorBarArrow",
          StripOnInput->False]
        }]],
        TextCell[
         Row[{"URL", 
           Style[" \[FilledDownTriangle]", "AnchorBarArrow"]}]]],
       StripOnInput->False], {"\<\"FeynCalc/ref/SquareAmplitude\"\>":>
      None, "\<\"Copy Wolfram Documentation Center URL\"\>":>
      Module[{DocumentationSearch`Private`nb$}, 
       DocumentationSearch`Private`nb$ = NotebookPut[
          Notebook[{
            Cell["FeynCalc/ref/SquareAmplitude"]}, Visible -> False]]; 
       SelectionMove[DocumentationSearch`Private`nb$, All, Notebook]; 
       FrontEndTokenExecute[DocumentationSearch`Private`nb$, "Copy"]; 
       NotebookClose[DocumentationSearch`Private`nb$]; Null], 
      Delimiter, "\<\"Copy web URL\"\>":>
      Module[{DocumentationSearch`Private`nb$}, 
       DocumentationSearch`Private`nb$ = NotebookPut[
          Notebook[{
            Cell[
             BoxData[
              MakeBoxes[
               Hyperlink[
               "http://reference.wolfram.com/language/FeynCalc/ref/\
SquareAmplitude.html"], StandardForm]], "Input", TextClipboardType -> 
             "PlainText"]}, Visible -> False]]; 
       SelectionMove[DocumentationSearch`Private`nb$, All, Notebook]; 
       FrontEndTokenExecute[DocumentationSearch`Private`nb$, "Copy"]; 
       NotebookClose[DocumentationSearch`Private`nb$]; 
       Null], "\<\"Go to web URL\"\>":>FrontEndExecute[{
        NotebookLocate[{
          URL[
           StringJoin[
            If[
             TrueQ[DocumentationBuild`Make`Private`wsmlinkQ$252198], 
             "http://reference.wolfram.com/system-modeler/", 
             "http://reference.wolfram.com/language/"], 
            "FeynCalc/ref/SquareAmplitude", ".html"]], None}]}]},
      Appearance->None,
      MenuAppearance->Automatic,
      MenuStyle->"URLMenu"]],
     LineSpacing->{1.4, 0}]], "AnchorBar"]}
  }]], "AnchorBarGrid",
 GridBoxOptions->{GridBoxItemSize->{"Columns" -> {
     Scaled[0.65], {
      Scaled[0.34]}}, "ColumnsIndexed" -> {}, "Rows" -> {{1.}}, 
   "RowsIndexed" -> {}}},
 CellID->1],

Cell[TextData[{
 Cell["SquareAmplitude", "ObjectName"],
 Cell[BoxData[
  InterpretationBox[
   StyleBox[
    GraphicsBox[{},
     BaselinePosition->Baseline,
     ImageSize->{8, 0}],
    CacheGraphics->False],
   Spacer[8]]]],
 Cell[BoxData[""], "ObjectNameTranslation"]
}], "ObjectNameGrid"],

Cell[CellGroupData[{

Cell[BoxData[GridBox[{
   {"", Cell[TextData[{
     Cell[BoxData[
      RowBox[{"SquareAmplitude", "[", 
       RowBox[{"m1", ",", " ", "m2"}], "]"}]], "InlineFormula"],
     " \[LineSeparator]multiplies the amplitudes from the list ",
     Cell[BoxData["m1"], "InlineFormula"],
     " with their complex conjugate from the list ",
     Cell[BoxData["m2"], "InlineFormula"],
     " to obtain the list of products ",
     Cell[BoxData[
      RowBox[{
       SubscriptBox["m1", "i"], 
       SubscriptBox["m2", "j"]}]], "InlineFormula"],
     "."
    }]]}
  }]], "Usage",
 GridBoxOptions->{
 GridBoxBackground->{
  "Columns" -> {{None}}, "ColumnsIndexed" -> {}, "Rows" -> {{None}}, 
   "RowsIndexed" -> {}}},
 CellID->982511436],

Cell[CellGroupData[{

Cell[TextData[Cell[BoxData[
 ButtonBox[Cell[TextData[{
   Cell[BoxData[
    InterpretationBox[
     StyleBox[
      GraphicsBox[{},
       BaselinePosition->Baseline,
       ImageSize->{6, 0}],
      CacheGraphics->False],
     Spacer[6]]]],
   "Details"
  }], "NotesFrameText"],
  Appearance->{Automatic, None},
  BaseStyle->None,
  ButtonFunction:>(FrontEndExecute[{
     FrontEnd`SelectionMove[
      FrontEnd`SelectedNotebook[], All, ButtonCell], 
     FrontEndToken["OpenCloseGroup"], 
     FrontEnd`SelectionMove[
      FrontEnd`SelectedNotebook[], After, CellContents]}]& ),
  Evaluator->None,
  Method->"Preemptive"]]]], "NotesSection",
 WholeCellGroupOpener->True,
 CellGroupingRules->{"SectionGrouping", 50},
 CellID->323547814],

Cell["", "SectionHeaderSpacer"],

Cell["\<\
This function can be useful when exporting amplitudes obtained with FeynCalc \
to FORM.\
\>", "Notes",
 CellID->1502175831],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Options", "[", "SquareAmplitude", "]"}]], "Input",
 CellLabel->"In[62]:=",
 CellID->428918938],

Cell[BoxData[
 FormBox[
  RowBox[{"{", 
   RowBox[{
    RowBox[{"FeynCalcExternal", "\[Rule]", "False"}], ",", 
    RowBox[{"FeynCalcInternal", "\[Rule]", "False"}], ",", 
    RowBox[{"FCVerbose", "\[Rule]", "False"}], ",", 
    RowBox[{"Indexed", "\[Rule]", "False"}], ",", 
    RowBox[{"Real", "\[Rule]", "False"}], ",", 
    RowBox[{"List", "\[Rule]", "True"}]}], "}"}], TraditionalForm]], "Output",\

 ImageSize->{400, 35},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}},
 CellLabel->"Out[62]=",
 CellID->285651048]
}, Open  ]]
}, Closed]]
}, Open  ]],

Cell[CellGroupData[{

Cell[TextData[{
 Cell[BoxData[
  InterpretationBox[
   StyleBox[
    GraphicsBox[{},
     BaselinePosition->Baseline,
     ImageSize->{6, 0}],
    CacheGraphics->False],
   Spacer[6]]]],
 "Examples",
 "\[NonBreakingSpace]\[NonBreakingSpace]",
 Cell["(4)", "ExampleCount"]
}], "PrimaryExamplesSection",
 WholeCellGroupOpener->True,
 CellTags->"PrimaryExamplesSection",
 CellID->2128006190],

Cell[CellGroupData[{

Cell[TextData[{
 "Basic Examples",
 "\[NonBreakingSpace]\[NonBreakingSpace]",
 Cell["(4)", "ExampleCount"]
}], "ExampleSection", "ExampleSection",
 WholeCellGroupOpener->True,
 CellID->1012308298],

Cell[BoxData[
 RowBox[{"Clear", "[", 
  RowBox[{"a1", ",", "a2", ",", "a3", ",", "b1", ",", "b2", ",", "b3"}], 
  "]"}]], "Input",
 CellLabel->"In[1]:=",
 CellID->1874998504],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"SquareAmplitude", "[", 
  RowBox[{
   RowBox[{"{", 
    RowBox[{"a1", ",", "a2", ",", "a3"}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"b1", ",", "b2", ",", "b3"}], "}"}]}], "]"}]], "Input",
 CellLabel->"In[2]:=",
 CellID->1954182245],

Cell[BoxData[
 FormBox[
  RowBox[{"{", 
   RowBox[{
    RowBox[{"a1", " ", "b1"}], ",", 
    RowBox[{"a1", " ", "b2"}], ",", 
    RowBox[{"a1", " ", "b3"}], ",", 
    RowBox[{"a2", " ", "b1"}], ",", 
    RowBox[{"a2", " ", "b2"}], ",", 
    RowBox[{"a2", " ", "b3"}], ",", 
    RowBox[{"a3", " ", "b1"}], ",", 
    RowBox[{"a3", " ", "b2"}], ",", 
    RowBox[{"a3", " ", "b3"}]}], "}"}], TraditionalForm]], "Output",
 ImageSize->{382, 16},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}},
 CellLabel->"Out[2]=",
 CellID->200339766]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
 InterpretationBox[Cell["\t", "ExampleDelimiter"],
  $Line = 0; Null]], "ExampleDelimiter",
 CellID->201964494],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"SquareAmplitude", "[", 
  RowBox[{
   RowBox[{"{", 
    RowBox[{"a1", ",", "a2", ",", "a3"}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"b1", ",", "b2", ",", "b3"}], "}"}], ",", 
   RowBox[{"List", "\[Rule]", "False"}]}], "]"}]], "Input",
 CellLabel->"In[1]:=",
 CellID->339727845],

Cell[BoxData[
 FormBox[
  RowBox[{
   RowBox[{"a1", " ", "b1"}], "+", 
   RowBox[{"a1", " ", "b2"}], "+", 
   RowBox[{"a1", " ", "b3"}], "+", 
   RowBox[{"a2", " ", "b1"}], "+", 
   RowBox[{"a2", " ", "b2"}], "+", 
   RowBox[{"a2", " ", "b3"}], "+", 
   RowBox[{"a3", " ", "b1"}], "+", 
   RowBox[{"a3", " ", "b2"}], "+", 
   RowBox[{"a3", " ", "b3"}]}], TraditionalForm]], "Output",
 ImageSize->{426, 14},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}},
 CellLabel->"Out[1]=",
 CellID->320790960]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
 InterpretationBox[Cell["\t", "ExampleDelimiter"],
  $Line = 0; Null]], "ExampleDelimiter",
 CellID->567832013],

Cell[TextData[{
 "When the option ",
 Cell[BoxData["Real"], "InlineFormula"],
 " is set to ",
 Cell[BoxData["True"], "InlineFormula"],
 ", the amplitudes are assumed to have no imaginary part"
}], "Notes",
 CellID->2020381572],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"SquareAmplitude", "[", 
  RowBox[{
   RowBox[{"{", 
    RowBox[{"a1", ",", "a2", ",", "a3"}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"b1", ",", "b2", ",", "b3"}], "}"}], ",", 
   RowBox[{"Real", "\[Rule]", "True"}], ",", 
   RowBox[{"List", "\[Rule]", "False"}]}], "]"}]], "Input",
 CellLabel->"In[1]:=",
 CellID->1492913147],

Cell[BoxData[
 FormBox[
  RowBox[{
   RowBox[{"a1", " ", "b1"}], "+", 
   RowBox[{"2", " ", "a2", " ", "b1"}], "+", 
   RowBox[{"a2", " ", "b2"}], "+", 
   RowBox[{"2", " ", "a3", " ", "b1"}], "+", 
   RowBox[{"2", " ", "a3", " ", "b2"}], "+", 
   RowBox[{"a3", " ", "b3"}]}], TraditionalForm]], "Output",
 ImageSize->{316, 14},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}},
 CellLabel->"Out[1]=",
 CellID->746137899]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
 InterpretationBox[Cell["\t", "ExampleDelimiter"],
  $Line = 0; Null]], "ExampleDelimiter",
 CellID->988148519],

Cell[TextData[{
 "The option ",
 Cell[BoxData["Indexed"], "InlineFormula"],
 " allows us to attach a marker to each contribution"
}], "Notes",
 CellID->2100077543],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"SquareAmplitude", "[", 
  RowBox[{
   RowBox[{"{", 
    RowBox[{"a1", ",", "a2", ",", "a3"}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"b1", ",", "b2", ",", "b3"}], "}"}], ",", 
   RowBox[{"Real", "\[Rule]", "True"}], ",", 
   RowBox[{"List", "\[Rule]", "False"}], ",", 
   RowBox[{"Indexed", "\[Rule]", "mark"}]}], "]"}]], "Input",
 CellLabel->"In[1]:=",
 CellID->253785260],

Cell[BoxData[
 FormBox[
  RowBox[{
   RowBox[{"a1", " ", "b1", " ", 
    RowBox[{"mark", "(", 
     RowBox[{"1", ",", "1"}], ")"}]}], "+", 
   RowBox[{"2", " ", "a2", " ", "b1", " ", 
    RowBox[{"mark", "(", 
     RowBox[{"2", ",", "1"}], ")"}]}], "+", 
   RowBox[{"a2", " ", "b2", " ", 
    RowBox[{"mark", "(", 
     RowBox[{"2", ",", "2"}], ")"}]}], "+", 
   RowBox[{"2", " ", "a3", " ", "b1", " ", 
    RowBox[{"mark", "(", 
     RowBox[{"3", ",", "1"}], ")"}]}], "+", 
   RowBox[{"2", " ", "a3", " ", "b2", " ", 
    RowBox[{"mark", "(", 
     RowBox[{"3", ",", "2"}], ")"}]}], "+", 
   RowBox[{"a3", " ", "b3", " ", 
    RowBox[{"mark", "(", 
     RowBox[{"3", ",", "3"}], ")"}]}]}], TraditionalForm]], "Output",
 ImageSize->{375, 35},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}},
 CellLabel->"Out[1]=",
 CellID->1192527776]
}, Open  ]]
}, Open  ]]
}, Open  ]]
}, Open  ]],

Cell[" ", "FooterCell"]
},
Saveable->False,
ScreenStyleEnvironment->"Working",
WindowSize->{725, 750},
WindowMargins->{{0, Automatic}, {Automatic, 0}},
WindowTitle->"SquareAmplitude",
TaggingRules->{
 "ModificationHighlight" -> False, "ColorType" -> "SymbolColor", "LinkTrails" -> 
  GridBox[{{
      RowBox[{
        ButtonBox[
        "FeynCalc", ButtonData -> "paclet:FeynCalc/guide/FeynCalc", 
         BaseStyle -> {"Link", "DockedLinkTrail"}]}]}}, ColumnAlignments -> 
    Left], "HasOptions" -> False, "ExampleCounter" -> 1, "NeedPlatMsgIn" -> 
  None, "RootCaptions" -> "", 
  "Metadata" -> {
   "built" -> "{2020, 6, 20, 19, 11, 10.760480}", 
    "history" -> {"9.3", "", "", ""}, "context" -> "FeynCalc`", 
    "keywords" -> {}, "specialkeywords" -> {}, 
    "tutorialcollectionlinks" -> {}, "index" -> True, "label" -> 
    "Feyn Calc Symbol", "language" -> "en", "paclet" -> "FeynCalc", "status" -> 
    "None", "summary" -> 
    "SquareAmplitude[m1, m2] multiplies the amplitudes from the list m1 with \
their complex conjugate from the list m2 to obtain the list of products m1i \
m2j.", "synonyms" -> {}, "tabletags" -> {}, "title" -> "SquareAmplitude", 
    "titlemodifier" -> "", "windowtitle" -> "SquareAmplitude", "type" -> 
    "Symbol", "uri" -> "FeynCalc/ref/SquareAmplitude"}, 
  "SearchTextTranslated" -> ""},
CellContext->"Global`",
FrontEndVersion->"10.4 for Linux x86 (64-bit) (April 11, 2016)",
StyleDefinitions->Notebook[{
   Cell[
    StyleData[
    StyleDefinitions -> FrontEnd`FileName[{"Wolfram"}, "Reference.nb"]]], 
   Cell[
    StyleData["Input"], CellContext -> "Global`"], 
   Cell[
    StyleData["Output"], CellContext -> "Global`"]}, Visible -> False, 
  FrontEndVersion -> "10.4 for Linux x86 (64-bit) (April 11, 2016)", 
  StyleDefinitions -> "Default.nb"]
]
(* End of Notebook Content *)

(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{
 "PrimaryExamplesSection"->{
  Cell[5611, 179, 388, 15, 31, "PrimaryExamplesSection",
   CellTags->"PrimaryExamplesSection",
   CellID->2128006190]}
 }
*)
(*CellTagsIndex
CellTagsIndex->{
 {"PrimaryExamplesSection", 13056, 439}
 }
*)
(*NotebookFileOutline
Notebook[{
Cell[587, 21, 2302, 53, 53, "AnchorBarGrid",
 CellID->1],
Cell[2892, 76, 292, 11, 45, "ObjectNameGrid"],
Cell[CellGroupData[{
Cell[3209, 91, 726, 21, 106, "Usage",
 CellID->982511436],
Cell[CellGroupData[{
Cell[3960, 116, 738, 24, 31, "NotesSection",
 CellGroupingRules->{"SectionGrouping", 50},
 CellID->323547814],
Cell[4701, 142, 31, 0, 70, "SectionHeaderSpacer"],
Cell[4735, 144, 133, 4, 70, "Notes",
 CellID->1502175831],
Cell[CellGroupData[{
Cell[4893, 152, 118, 3, 70, "Input",
 CellID->428918938],
Cell[5014, 157, 536, 15, 56, "Output",
 CellID->285651048]
}, Open  ]]
}, Closed]]
}, Open  ]],
Cell[CellGroupData[{
Cell[5611, 179, 388, 15, 31, "PrimaryExamplesSection",
 CellTags->"PrimaryExamplesSection",
 CellID->2128006190],
Cell[CellGroupData[{
Cell[6024, 198, 196, 6, 26, "ExampleSection",
 CellID->1012308298],
Cell[6223, 206, 174, 5, 27, "Input",
 CellID->1874998504],
Cell[CellGroupData[{
Cell[6422, 215, 259, 8, 27, "Input",
 CellID->1954182245],
Cell[6684, 225, 547, 17, 37, "Output",
 CellID->200339766]
}, Open  ]],
Cell[CellGroupData[{
Cell[7268, 247, 125, 3, 9, "ExampleDelimiter",
 CellID->201964494],
Cell[CellGroupData[{
Cell[7418, 254, 305, 9, 27, "Input",
 CellID->339727845],
Cell[7726, 265, 514, 16, 35, "Output",
 CellID->320790960]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[8289, 287, 125, 3, 9, "ExampleDelimiter",
 CellID->567832013],
Cell[8417, 292, 226, 7, 32, "Notes",
 CellID->2020381572],
Cell[CellGroupData[{
Cell[8668, 303, 352, 10, 27, "Input",
 CellID->1492913147],
Cell[9023, 315, 436, 13, 35, "Output",
 CellID->746137899]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[9508, 334, 125, 3, 9, "ExampleDelimiter",
 CellID->988148519],
Cell[9636, 339, 163, 5, 32, "Notes",
 CellID->2100077543],
Cell[CellGroupData[{
Cell[9824, 348, 400, 11, 45, "Input",
 CellID->253785260],
Cell[10227, 361, 851, 25, 56, "Output",
 CellID->1192527776]
}, Open  ]]
}, Open  ]]
}, Open  ]]
}, Open  ]],
Cell[11129, 392, 23, 0, 70, "FooterCell"]
}
]
*)

(* End of internal cache information *)

